﻿@model List<Com.Charence.PassManager.UI.Web.Models.Dashboard.AccountSummaryModel>
@{
    ViewBag.Title = "Dashboard";
}

@section CustomScripts{

}

<ol class="breadcrumb">
    <li><a href="#">Home</a></li>
    <li class="active"><a href="@Url.Action("Index", "Dashboard")">Dashboard</a></li>
</ol>

<div class="row activity">
    <div class="col-md-6">
        @for (var i = 0; i < Model.Count; i++)
        {
            if (i % 2 == 0)
            {
            <div class="panel panel-default">
                <div class="panel-heading">
                    <img src="assets/img/avatar.jpg" class="img-rounded">
                    <div class="pull-right text-right">
                        <i class="fa fa-calendar"></i>
                        <br>
                        3 hours ago
                    </div>
                    <div><strong>@Model[i].WebSiteName</strong></div>
                    <div class="small"><i class="fa fa-hand-o-right"></i>@Model[i].AccountName</div>
                </div>
                <div class="panel-body">
                    <ul>
                        <li class="has-success">Password <i class="fa fa-check form-control-feedback"></i></li>
                        <li class="@Model[i].IsPinSetHolderClass">PIN <i class="fa @Model[i].IsPinSetIconClass form-control-feedback"></i></li>
                        <li>Others system intergrated <span class="label label-danger">Not Set</span></li>
                        <li>Secure questions <span class="label label-danger">@Model[i].SecureQuestionValue</span></li>
                        @{
                if (Model[i].ShowOtherProperties)
                {
                            @:<li>Properties <span class="label label-warning">@Model[i].OtherProperties.Value</span></li>
                        }
                        }
                    </ul>
                </div>
            </div> 
            }
        }
    </div>
    <div class="col-md-6">
        @for (var i = 0; i < Model.Count; i++)
        {
            if (i % 2 == 1)
            {
            <div class="panel panel-default">
                <div class="panel-heading">
                    <img src="assets/img/avatar.jpg" class="img-rounded">
                    <div class="pull-right text-right">
                        <i class="fa fa-calendar"></i>
                        <br>
                        3 hours ago
                    </div>
                    <div><strong>@Model[i].WebSiteName</strong></div>
                    <div class="small"><i class="fa fa-hand-o-right"></i>@Model[i].AccountName</div>
                </div>
                <div class="panel-body">
                    <ul>
                        <li class="has-success">Password <i class="fa fa-check form-control-feedback"></i></li>
                        <li class="@Model[i].IsPinSetHolderClass">PIN <i class="fa @Model[i].IsPinSetIconClass form-control-feedback"></i></li>
                        <li>Others system intergrated <span class="label label-danger">Not Set</span></li>
                        <li>Secure questions <span class="label label-danger">@Model[i].SecureQuestionValue</span></li>
                        @{
                if (Model[i].ShowOtherProperties)
                {
                            @:<li>Properties <span class="label label-warning">@Model[i].OtherProperties.Value</span></li>
                        }
                        }
                    </ul>
                </div>
            </div> 
            }
        }
    </div>
</div>
